# 配置模块初始化文件
from config.settings import Config, DevelopmentConfig, TestingConfig, ProductionConfig

# 根据环境变量选择配置类
def get_config(env_name):
    """根据环境名称获取配置类"""
    config_map = {
        'development': DevelopmentConfig,
        'testing': TestingConfig,
        'production': ProductionConfig
    }
    return config_map.get(env_name.lower(), DevelopmentConfig)